//package org.zbus.ha.rpc.direct;
//
//import java.io.IOException;
//
//import org.zbus.examples.rpc.appdomain.InterfaceExampleImpl;
//import org.zbus.rpc.RpcProcessor;
//import org.zbus.rpc.direct.Service;
//import org.zbus.rpc.direct.ServiceConfig;
//
//public class RpcService {
//	@SuppressWarnings("resource")
//	public static void main(String[] args) throws IOException {
//		RpcProcessor processor = new RpcProcessor(); 
//		processor.addModule(new InterfaceExampleImpl()); 
//		
//		ServiceConfig config = new ServiceConfig(); 
//		//config.serverPort = 8080;  //不配置则使用随机端口
//		config.messageProcessor = processor; 
//		config.trackServerList = "127.0.0.1:16666";//指定TrackServer地址列表
//		config.entryId = "HaDirectRpc"; //客户端根据这个标识来识别
//		
//		Service svc = new Service(config);
//		svc.start(); 
//	} 
//}
